package com.example.module_knowledge

import android.util.Log
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.module_common.arouter.RouterURLS
import com.example.module_common.base.BaseActivity
import com.example.module_common.model.KnowledgeModel
import com.example.module_knowledge.presenter.KnowLedgePresenter
import com.example.module_knowledge.view.KnowLedgeView

@Route(path = RouterURLS.KNOWLEDGE_ACTIVITY)
class KnowLedgeActivity : BaseActivity<KnowLedgePresenter>(),KnowLedgeView {


    override val layoutId: Int
        get() = R.layout.activity_knowledge

    override fun createPresenter(): KnowLedgePresenter {
        return KnowLedgePresenter(this)
    }

    override fun initView() {
        presenter!!.tree()
    }

    override fun addListener() {
    }

    override fun onLoadTree(data: List<KnowledgeModel.DataBean>) {
        Log.d("data",data.toString())
    }

    override fun showLoading() {

    }

    override fun hideLoading() {

    }
}
